package org.dydl.model.system;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Generated;
import org.hibernate.annotations.GenerationTime;
import org.hibernate.annotations.GenericGenerator;

/**
 * Created by Jack on 2018/1/29.
 */
@Entity
@Table(name="product")
public class Product implements Serializable{
	
	
	
	/**  
	 * @Fields field:field:{todo}(用一句话描述这个变量表示什么)
	 */  
	private static final long serialVersionUID = -3081427621737712625L;
	
	
	@Id
//	@GeneratedValue(generator = "uuid")
//	@GenericGenerator(name = "id", strategy = "id")
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	private String name;
	private String model;
	private Integer typeId;
	private Integer floorPrice;
	private Integer retailprice;
	private String describes;
	private String remarks;
	private String createUser = "admin";
	@Column(name="CREATE_DATE",columnDefinition="TIMESTAMP DEFAULT CURRENT_TIMESTAMP",insertable = false,updatable = false)
	@Generated(GenerationTime.INSERT)
	private Timestamp createDate;
	
	
	
	/**
	 * @return the createDate
	 */
	public Timestamp getCreateDate() {
		return createDate;
	}

	/**
	 * @param createDate the createDate to set
	 */
	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the model
	 */
	public String getModel() {
		return model;
	}

	/**
	 * @param model
	 *            the model to set
	 */
	public void setModel(String model) {
		this.model = model;
	}

	/**
	 * @return the typeId
	 */
	public Integer getTypeId() {
		return typeId;
	}

	/**
	 * @param typeId
	 *            the typeId to set
	 */
	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	/**
	 * @return the describe
	 */
	public String getDescribes() {
		return describes;
	}

	/**
	 * @param describe
	 *            the describe to set
	 */
	public void setDescribes(String describes) {
		this.describes = describes;
	}

	/**
	 * @return the remarks
	 */
	public String getRemarks() {
		return remarks;
	}

	/**
	 * @param remarks
	 *            the remarks to set
	 */
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}


	/**
	 * @return the createUser
	 */
	public String getCreateUser() {
		return createUser;
	}

	/**
	 * @param createUser
	 *            the createUser to set
	 */
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}



	/**
	 * @return the floorPrice
	 */
	public Integer getFloorPrice() {
		return floorPrice;
	}

	/**
	 * @param floorPrice the floorPrice to set
	 */
	public void setFloorPrice(Integer floorPrice) {
		this.floorPrice = floorPrice;
	}

	/**
	 * @return the retailprice
	 */
	public Integer getRetailprice() {
		return retailprice;
	}

	/**
	 * @param retailprice the retailprice to set
	 */
	public void setRetailprice(Integer retailprice) {
		this.retailprice = retailprice;
	}

	/**  
	 * 创建一个新的实例 Product.    
	 */  
	public Product() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	
	

}
